import request from '@/utils/request'

// 查询入库记录列表
export function listInboundRecords(query) {
  return request({
    url: '/inboundRecords/inboundRecords/list',
    method: 'get',
    params: query
  })
}

// 查询入库记录详细
export function getInboundRecords(id) {
  return request({
    url: '/inboundRecords/inboundRecords/' + id,
    method: 'get'
  })
}

// 新增入库记录
export function addInboundRecords(data) {
  return request({
    url: '/inboundRecords/inboundRecords',
    method: 'post',
    data: data
  })
}

// 修改入库记录
export function updateInboundRecords(data) {
  return request({
    url: '/inboundRecords/inboundRecords',
    method: 'put',
    data: data
  })
}

// 删除入库记录
export function delInboundRecords(id) {
  return request({
    url: '/inboundRecords/inboundRecords/' + id,
    method: 'delete'
  })
}
